package com.cljh.bean.Chat;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 服务器发给浏览器的websocket数据
 */
@Data
public class ResultMessage {
    private boolean system;
    private String fromName;
    private Object message;//如果是系统消息是数组
    private String img;
    private Integer id;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date sendTime;
    private boolean online;
}
